home *** CD-ROM | disk | FTP | other *** search
/ The Trig Explorer / The Trig Explorer.iso / pc / explorer / ex_funct.dxr / 00037.ls < prev    next >
Encoding:
Text File  |  1997-07-22  |  334 b   |  22 lines

  1. on mouseUp
  2.   global r, theta
  3.   set r to field "R"
  4.   if field "Theta" = EMPTY then
  5.     set theta to 0
  6.     put "0" into field "Theta"
  7.   end if
  8.   if value(field "Theta") >= 90 then
  9.     set theta to 89
  10.     put "89" into field "Theta"
  11.   end if
  12.   if r <= 0 then
  13.     go("Error")
  14.   else
  15.     go("SA")
  16.   end if
  17. end
  18.  
  19. on mouseDown
  20.   button()
  21. end
  22.